// src/types/api.ts
export interface BidInfo {
  id: string;
  name: string;
  has_bargaining: boolean;
}

export interface TendersGETResponse {
  tenders: Array<{
    id: string;
    category: string;
    quarter: string;
  }>;
}

export interface TendersBidsGETResponse {
  bids: BidInfo[];
}

export interface DELETEResponse {
  message: string;
}

export interface HTTPValidationError {
  detail?: Array<{
    loc: (string | number)[];
    msg: string;
    type: string;
  }>;
}

// 请求体类型（用于 formData）
export interface CreatePipeBidBody {
  file: File | Blob;
}

export interface CreateSeaBidBody {
  starting_port: string;
  file: File | Blob;
}

export interface CreateTenderBody {
  category: string;
  quarter: string;
  document: File | Blob;
}

export interface UploadBargainingBody {
  file: File | Blob;
}

export interface POSTResponse {
    message: string;
}